package com.noahplat.person.mapper;

import com.noahplat.common.utils.Result;
import com.noahplat.person.pojo.PersonDevice;
import org.apache.ibatis.annotations.Select;
import tk.mybatis.mapper.common.Mapper;

/**
 * @InterfaceName: PersonDeviceMapper
 * @Description: 人员设备绑定关系实现类
 * @Author 李景星
 * @Date 2021/3/9
 * @Version 1.0
 */
public interface PersonDeviceMapper extends Mapper<PersonDevice> {

    /**
     * 查询一条绑定信息
     * @param pid
     * @return
     */
    @Select("select id from tb_person_device where pid = #{pid} limit 1")
    PersonDevice getOne(Long pid);
}
